package com.carlinfo.shop.users.dubbo;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.carlinfo.shop.common.util.ConstatFinalUtil;

/**
 * 专门用于启动Dubbo
 * @author wangshMac
 *
 */
public class DubboUsersProvider
{
	public static void main(String[] args)
	{
		ClassPathXmlApplicationContext context = new 
				ClassPathXmlApplicationContext(
						"classpath*:META-INF/spring/dubbo-applicationContext.xml",
						"classpath*:META-INF/spring/applicationContext-*.xml");
		context.start();
		ConstatFinalUtil.LOGGER.info("=====生产者(提供者启动了)=========");
		try
		{
			System.in.read(); // 按任意键退出
		} catch (IOException e)
		{
			e.printStackTrace();
		}
	}
}
